package com.ws.mapper;

import com.ws.bean.Themes;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ThemeMapper {

    @Select("select * from themes")
    List<Themes> list();

    @Insert("insert into themes(theme_name) values(#{theme_name})")
    int add(Themes themes);

    @Delete("delete from themes where theme_id=#{id}")
    int delete(Integer id);
}
